#ifndef PURCHASEDINGDANTABLEVIEW_H
#define PURCHASEDINGDANTABLEVIEW_H

#include "mytableview.h"
#include "purchasedingdanstandarditemmodel.h"
#include "productpicker.h"

class PurchaseDingdanTableView : public MyTableView
{
    Q_OBJECT
public:
    explicit PurchaseDingdanTableView(QWidget *parent = nullptr);

    void setListPushButton(ListPushButton *listPushButton);

    void initHiddenState();

    void clear();

    void setSelectionRow();

    void insertHistoryProduct(QList<HistoryProduct*> historyProducts);

    QList<DingdanDetail*> getDingdanDetails();
signals:
    void refreshTotalPlanCount(int totalPlanCount);

public slots:

private:
    PurchaseDingdanStandardItemModel *model;
    ProductPicker productPicker;
};

#endif // PURCHASEDINGDANTABLEVIEW_H
